.thaw-field {
    display: grid;
}

.thaw-field__label {
    margin-bottom: var(--spacingVerticalXXS);
    padding-bottom: var(--spacingVerticalXXS);
    padding-top: var(--spacingVerticalXXS);
}

.thaw-field--horizontal {
    grid-template-columns: 33% 1fr;
    grid-template-rows: auto auto auto 1fr;
}

.thaw-field--horizontal > .thaw-field__label {
    grid-row-end: -1;
    grid-row-start: 1;

    margin-bottom: 0;
    margin-right: var(--spacingHorizontalM);
    padding-bottom: var(--spacingVerticalSNudge);
    padding-top: var(--spacingVerticalSNudge);
}

.thaw-field__validation-message {
    padding-left: calc(12px + var(--spacingHorizontalXS));
    margin-top: var(--spacingVerticalXXS);
    color: var(--colorNeutralForeground3);
    font-family: var(--fontFamilyBase);
    font-size: var(--fontSizeBase200);
    font-weight: var(--fontWeightRegular);
    line-height: var(--lineHeightBase200);
    display: flex;
    align-items: center;
}

.thaw-field--error > .thaw-field__validation-message {
    color: var(--colorPaletteRedForeground1);
}

.thaw-field--error .thaw-spin-button:not(:focus-within),
.thaw-field--error .thaw-select__select:not(:focus-within),
.thaw-field--error .thaw-combobox:not(:focus-within),
.thaw-field--error .thaw-textarea:not(:focus-within),
.thaw-field--error .thaw-input:not(:focus-within) {
    border-color: var(--colorPaletteRedBorder2);
}

.thaw-field__validation-message-icon {
    display: inline-block;
    font-size: 12px;
    margin-left: calc(-12px - var(--spacingHorizontalXS));
    margin-right: var(--spacingHorizontalXS);
    line-height: 0;
    vertical-align: -1px;
}

.thaw-field__validation-message-icon > svg {
    display: inline;
    line-height: 0;
}

.thaw-field__validation-message-icon--success {
    color: var(--colorPaletteGreenForeground1);
}

.thaw-field__validation-message-icon--error {
    color: var(--colorPaletteRedForeground1);
}

.thaw-field__validation-message-icon--warning {
    color: var(--colorPaletteDarkOrangeForeground1);
}
